public class Transition
{
	
	protected String	label;
	protected State		targetState;
	
	public Transition()
	{
	}
	
	public Transition(String label, State target)
	{
		this.label = label;
		targetState = target;
	}
	
	/**
	 * @return the label
	 */
	public String getLabel()
	{
		return label;
	}
	
	/**
	 * @param label
	 *            the label to set
	 */
	public void setLabel(String label)
	{
		this.label = label;
	}
	
	/**
	 * @return the targetState
	 */
	public State getTargetState()
	{
		return targetState;
	}
	
	/**
	 * @param targetState
	 *            the targetState to set
	 */
	public void setTargetState(State targetState)
	{
		this.targetState = targetState;
	}
	
	public String toString()
	{
		return targetState.getStateName() + " (" + label + ") ";
	}
}
